﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Reticle
{
    public static class Commands
    {
        public static string ProcessCommand(string command, Bot bot)
        {
            string[] words = command.Split(new char[] { ' ' });
            string commandtext = words[0];
            switch (commandtext)
            {
                case "/ver":
                case "/version":
                case "/about":
                    return "Reticle v1.0 Alpha 4 by Scope";
                case "/rejoin":
                case "/rj":
                    string channel = bot.CurrentChannel;
                    bot.Enqueue("/j " + bot.client.Settings.Username + ": Rejoin");
                    bot.Enqueue("/j " + channel);
                    return null;
                case "/cq":
                    bot.ClearQueue();
                    bot.SendMessage("Queue Cleared.");
                    return null;
                case "/scq":
                    bot.ClearQueue();
                    return null;
                default:
                    return command;
            }
        }
    }
}
